//
//  SkyChatHeader.h
//  Sky Chat
//
//  Created by XYT on 2021/10/12.
//

#ifndef SkyChatHeader_h
#define SkyChatHeader_h
#define kIs_iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define kIs_iPhoneX kScreenWidth >=375.0f && kScreenHeight >=812.0f&& kIs_iphone
#define SCREEN_BOUNDS   [UIScreen mainScreen].bounds //屏幕bounds
#define SCREEN_WITDTH    [UIScreen mainScreen].bounds.size.width //屏宽
#define SCREEN_HEIGHT    [UIScreen mainScreen].bounds.size.height
#define APPDELEGATE ((AppDelegate*)[[UIApplication sharedApplication] delegate])


/*状态栏高度*/
#define kStatusBarHeight (CGFloat)(kIs_iPhoneX?(44.0):(20.0))
/*导航栏高度*/
#define kNavBarHeight (44)
/*状态栏和导航栏总高度*/
#define kNavBarAndStatusBarHeight (CGFloat)(kIs_iPhoneX?(88.0):(64.0))
/*TabBar高度*/
#define kTabBarHeight (CGFloat)(kIs_iPhoneX?(49.0 + 34.0):(49.0))
/*顶部安全区域远离高度*/
#define kTopBarSafeHeight (CGFloat)(kIs_iPhoneX?(44.0):(0))
 /*底部安全区域远离高度*/
#define kBottomSafeHeight (CGFloat)(kIs_iPhoneX?(34.0):(0))
/*iPhoneX的状态栏高度差值*/
#define kTopBarDifHeight (CGFloat)(kIs_iPhoneX?(24.0):(0))
/*导航条和Tabbar总高度*/
#define kNavAndTabHeight (kNavBarAndStatusBarHeight + kTabBarHeight)

#define LOCALHELP  [LocalHelper sharedInstance]
#define MAINCOLOR  [UIColor colorFromHexString:@"FF31B6"]

#define Key_email_now @"email_now"
#define Key_psw_now @"psw_now"


#define Key_email @"email"
#define Key_psw @"password"
#define Key_niceName @"niceName"
#define Key_gender @"gender"
#define Key_icon @"icon"
#define Key_age @"age"
#define Key_gender @"gender"


#define Key_email_local @"email_local"
#define Key_psw_local @"password_local"
#define Key_niceName_local @"niceName_local"
#define Key_gender_local @"gender_local"
#define Key_icon_local @"icon_local"
#define Key_age_local @"age_local"
#define Key_gender_local @"gender_local"


#endif /* SkyChatHeader_h */
